/**
 * 
 */
package br.ifpb.edu.uml.elements;

/**
 * @author iponts
 *
 */
public class Relationship {

	private String motherClass;
	private String relationshipType;
	private String multiplicity;
	
	public Relationship( ) {
		setRelationshipType( null, "", null );
	}
	
	public Relationship( String motherClass, String relationshipType, String multiplicity ) {
		setRelationshipType( motherClass, relationshipType, multiplicity );
	}

	public Relationship( String motherClass, String relationshipType ) {
		setRelationshipType( motherClass, relationshipType, "1..0" );
	}
	
	public String getMotherClass( ) {
		return motherClass;
	}
	
	public String getRelationType() {
		return relationshipType;
	}
	
	public String getMultiplicity( ) {
		return multiplicity;
	}
	
	public void setMotherClass( String motherClass ) {
		this.motherClass = motherClass;
	}
	
	public void setRelationshipType( String motherClass, String relationshipType, String multiplicity ) {
		setMotherClass( motherClass );
		setMultiplicity( multiplicity );
		this.relationshipType = relationshipType;
	}
	
	public void setRelationshipType( String relationship ) {
		relationshipType = relationship;
	}
	
	public void setMultiplicity( String multiplicity ) {
		this.multiplicity = multiplicity;
	}
	
}
